<template>
  <div class="home">
    <router-view class="con" />
    <div class="nav">
      <router-link to="/home/index" tag="div">
        <i class="iconfont icon-shouye1"></i>
        首页
      </router-link>
      <router-link to="/home/classify" tag="div">
        <i class="iconfont icon-shouye1"></i>
        分类
      </router-link>
      <router-link to="/home/shopCar">
        <i class="iconfont icon-shouye"></i>
        购物车
      </router-link>
      <router-link to="/home/my">
        <i class="iconfont icon-wode1" style="color: blue"></i>
        我的
      </router-link>
    </div>
  </div>
</template>

<script>
// @ is an alias to /src


export default {
  name: 'Home',
  components: {
  }
}
</script>

<style scoped>
.home {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}
.con {
  flex: 1;
  overflow-y: scroll;
  display: flex;
  flex-direction: column;
}
.nav {
  border-top: 1px solid #eee;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 40px;
}

.router-link-active {
  color: red;
}
</style>
